← OnWeight HQPrototype — Build Notes

OnWeight — Prototype

OnWeight - Prototype.html is the clickable prototype: every screen runs inside a real iPhone frame, and the in-screen controls are now wired — you tap the app's own buttons, rows and keypad, not just chrome. Screen position, pace, sport and sex persist across reloads.

Chrome controls

What's wired (tap the screen itself)

Plan and Competition-rules (the flow tag shows the chosen sport).

How the wiring works

Rather than editing 25 component files, a small delegation layer in the prototype maps taps to destinations: it matches the tapped control's own text against a per-screen rule table, and otherwise advances the flow on any genuine primary CTA. This keeps the design components untouched and editable.


Remaining / intentionally not modelled

These are scope choices, not breakage — call them out at handoff:

  1. Not every leaf control routes. Secondary links, individual settings rows inside detail screens, and decorative chevrons are presentational. The primary journeys above are all tappable.
  2. One sport's screens deep-thread; others use MMA copy in spots. Sport selection drives the rules/goal/coach/plan, but a few mid-funnel screens still show MMA sample data.
  3. Result is now typed-weight-driven (closed): the verdict maps from your logged number vs the day's expected weight. The pace toggle remains as a demo override and to reach the edge verdicts directly. Full re-derivation of every downstream stat from one number is a dev/engine task.
  4. State screens are reachable but not all auto-triggered. Lifecycle/error/empty states are driven by date/data/connectivity in real life; here they're reached via the jump menu or their nearest trigger (pace toggle, Manage fight, drift verdict). A production build wires them to real signals.
  5. No real persistence/back-end — accounts, payments, sync are mocked (see the Errors flow for the failure-state designs).
  6. Newer launch screens are designed but not yet wired into this clickable prototype. The safety disclaimer + age gate (account step), legal docs (Terms / Privacy + data export/delete), the five cut-strategy ⓘ info sheets, the ±20 kg out-of-range goal gate, kg/lb (imperial) parity, and the widgets all exist in OnWeight - All Screens.html. Threading them into the tappable prototype is the next wiring increment.

Recommendation

The prototype now demonstrates the full happy path end-to-end with real taps, plus the sport and sex forks, settings drill-downs, destructive confirms and a live log. It's demo-ready. The next increment, if wanted, is recomputing the Result from the typed weight and wiring the remaining secondary links.

OnWeight HQ